package com.it.blog.service;

import com.github.pagehelper.PageInfo;
import com.it.blog.domain.ArticleType;
import com.it.blog.query.ArticleTypeQuery;
import com.it.blog.vo.ArticleTypeVo;

import java.util.List;

public interface ArticleTypeService {
    //查询全部
    List<ArticleType> findAll();

    PageInfo<ArticleType> queryPage(ArticleTypeQuery articleTypeQuery);

    ArticleType findOne(Long id);

    void addArticleType(ArticleType articleType);

    void updateArticleType(ArticleType articleType);

    void deleteArticleType(Long id);

    void batchArticleTypes(Long[] ids);

    List<ArticleType> getTypeTree(Long id);

    List<ArticleTypeVo> getArticleTypeStatistics();
}
